package com.pj.goods.dao;

import com.pj.pojo.Goods;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public class GoodsDaoImpl implements GoodsDao{
    @Autowired
    private SqlSession sqlSession;


    @Override
    public List<Goods> findGoods() {
        String statement="com.pj.goods.dao.GoodsDao";
        List<Goods> list = sqlSession.selectList(statement);
        return list;
    }
}
